package com.yangweiye.communicationonline.controller;

import com.yangweiye.communicationonline.service.FirstService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/first")
public class FirstController {
    @Autowired
    private FirstService firstService;

    @GetMapping("/sayHello")
    public String sayHello() {
        return firstService.sayHello();
    }
}
